<%@page language="Java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
    <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
    <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<div id="menu">
	<hr class="separator">

	<h:form>
	<ul>
			<li><a href="index.jsp"><span > Strona główna </span></a></li>
		<c:if test="${sessionScope.user.loggedUser == null || sessionScope.user.loggedUser.id == 0}">
			<li><a href="log_in.jsp"><span > Zaloguj </span></a></li>
			<li><a href="register.jsp"><span > Rejestracja </span></a></li>
		</c:if>
		<c:if test="${sessionScope.user.loggedUser.id > 0 }">
			<li><a href="editProfile.jsp"><span > Profil </span></a></li>
			<li><h:commandLink action="#{user.logOut}"><span>Wyloguj</span></h:commandLink></li>
		</c:if>
		<c:if test="${sessionScope.user.loggedUser.type == 'User' }">
			<li><a href="basket.jsp"><span > Koszyk </span></a></li>
		</c:if>
			<li><h:commandLink action="#{phone.getPhones}"><span > Telefony </span></h:commandLink></li> 
		<c:if test="${sessionScope.user.loggedUser.type == 'Admin' }">
			<li><h:commandLink action="#{user.getAllUsers}"><span > Użytkownicy </span></h:commandLink></li>
			<li><a href="transactions.jsp"><span > Zamówienia </span></a></li>
		</c:if>
	</ul>
	</h:form>

	<hr class="separator">
</div>

<div id="upper-image-div">
	<img src="images/content_top.png" id="content-top-img" width="900" height="16" />
</div>